package com.efast.dmom.equipment.statemach.handler.repair;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;
//import com.efast.cafe.commponent.statemach.annotation.StatemachHandle;
//import com.efast.cafe.commponent.statemach.base.HandleBaseProcessorService;
import com.efast.dmom.equipment.bean.repair.EquipRepairOrderDetailsBean;
import com.efast.dmom.equipment.entity.EquipRepairInfo;
import com.efast.dmom.equipment.entity.EquipSpareConsumption;
import com.efast.dmom.equipment.service.repair.IEquipRepairOrderService;
import com.efast.dmom.equipment.statemach.handler.base.HandleBaseProcessorService;

/**
 * @author Administrator
 * 维修单子项完成操作的扩展
 */
@Component
//@StatemachHandle(handleName = "complete", configId = 1010, entityName = "repairOrderDetails")
public class EquipRepairDetailCompleteHandler implements HandleBaseProcessorService<EquipRepairOrderDetailsBean> {

	@Autowired
	private IEquipRepairOrderService iEquipRepairOrderService;

	@Override
	public void process(JSONObject taskBean, EquipRepairOrderDetailsBean orderDetails,
			Map<String, JSONObject> extFormDataJson) {
		iEquipRepairOrderService.editRepairOrderDetail(orderDetails);
	}

}
